package com.hlxl.viewpoint.service.persistence;

import com.hlxl.viewpoint.model.ViewPoint;

import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.kernel.util.ReferenceRegistry;
import com.liferay.portal.service.ServiceContext;

import java.util.List;

/**
 * The persistence utility for the view point service. This utility wraps {@link ViewPointPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author Brian Wing Shun Chan
 * @see ViewPointPersistence
 * @see ViewPointPersistenceImpl
 * @generated
 */
public class ViewPointUtil {
    private static ViewPointPersistence _persistence;

    /*
     * NOTE FOR DEVELOPERS:
     *
     * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
     */

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
     */
    public static void clearCache() {
        getPersistence().clearCache();
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
     */
    public static void clearCache(ViewPoint viewPoint) {
        getPersistence().clearCache(viewPoint);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
     */
    public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
        throws SystemException {
        return getPersistence().countWithDynamicQuery(dynamicQuery);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
     */
    public static List<ViewPoint> findWithDynamicQuery(
        DynamicQuery dynamicQuery) throws SystemException {
        return getPersistence().findWithDynamicQuery(dynamicQuery);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
     */
    public static List<ViewPoint> findWithDynamicQuery(
        DynamicQuery dynamicQuery, int start, int end)
        throws SystemException {
        return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
     */
    public static List<ViewPoint> findWithDynamicQuery(
        DynamicQuery dynamicQuery, int start, int end,
        OrderByComparator orderByComparator) throws SystemException {
        return getPersistence()
                   .findWithDynamicQuery(dynamicQuery, start, end,
            orderByComparator);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
     */
    public static ViewPoint update(ViewPoint viewPoint)
        throws SystemException {
        return getPersistence().update(viewPoint);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
     */
    public static ViewPoint update(ViewPoint viewPoint,
        ServiceContext serviceContext) throws SystemException {
        return getPersistence().update(viewPoint, serviceContext);
    }

    /**
    * Returns all the view points where uuid = &#63;.
    *
    * @param uuid the uuid
    * @return the matching view points
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<com.hlxl.viewpoint.model.ViewPoint> findByUuid(
        java.lang.String uuid)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findByUuid(uuid);
    }

    /**
    * Returns a range of all the view points where uuid = &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.hlxl.viewpoint.model.impl.ViewPointModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param uuid the uuid
    * @param start the lower bound of the range of view points
    * @param end the upper bound of the range of view points (not inclusive)
    * @return the range of matching view points
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<com.hlxl.viewpoint.model.ViewPoint> findByUuid(
        java.lang.String uuid, int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findByUuid(uuid, start, end);
    }

    /**
    * Returns an ordered range of all the view points where uuid = &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.hlxl.viewpoint.model.impl.ViewPointModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param uuid the uuid
    * @param start the lower bound of the range of view points
    * @param end the upper bound of the range of view points (not inclusive)
    * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
    * @return the ordered range of matching view points
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<com.hlxl.viewpoint.model.ViewPoint> findByUuid(
        java.lang.String uuid, int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findByUuid(uuid, start, end, orderByComparator);
    }

    /**
    * Returns the first view point in the ordered set where uuid = &#63;.
    *
    * @param uuid the uuid
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching view point
    * @throws com.hlxl.viewpoint.NoSuchViewPointException if a matching view point could not be found
    * @throws SystemException if a system exception occurred
    */
    public static com.hlxl.viewpoint.model.ViewPoint findByUuid_First(
        java.lang.String uuid,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.hlxl.viewpoint.NoSuchViewPointException,
            com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findByUuid_First(uuid, orderByComparator);
    }

    /**
    * Returns the first view point in the ordered set where uuid = &#63;.
    *
    * @param uuid the uuid
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching view point, or <code>null</code> if a matching view point could not be found
    * @throws SystemException if a system exception occurred
    */
    public static com.hlxl.viewpoint.model.ViewPoint fetchByUuid_First(
        java.lang.String uuid,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().fetchByUuid_First(uuid, orderByComparator);
    }

    /**
    * Returns the last view point in the ordered set where uuid = &#63;.
    *
    * @param uuid the uuid
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching view point
    * @throws com.hlxl.viewpoint.NoSuchViewPointException if a matching view point could not be found
    * @throws SystemException if a system exception occurred
    */
    public static com.hlxl.viewpoint.model.ViewPoint findByUuid_Last(
        java.lang.String uuid,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.hlxl.viewpoint.NoSuchViewPointException,
            com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findByUuid_Last(uuid, orderByComparator);
    }

    /**
    * Returns the last view point in the ordered set where uuid = &#63;.
    *
    * @param uuid the uuid
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching view point, or <code>null</code> if a matching view point could not be found
    * @throws SystemException if a system exception occurred
    */
    public static com.hlxl.viewpoint.model.ViewPoint fetchByUuid_Last(
        java.lang.String uuid,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
    }

    /**
    * Returns the view points before and after the current view point in the ordered set where uuid = &#63;.
    *
    * @param id the primary key of the current view point
    * @param uuid the uuid
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the previous, current, and next view point
    * @throws com.hlxl.viewpoint.NoSuchViewPointException if a view point with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static com.hlxl.viewpoint.model.ViewPoint[] findByUuid_PrevAndNext(
        long id, java.lang.String uuid,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.hlxl.viewpoint.NoSuchViewPointException,
            com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findByUuid_PrevAndNext(id, uuid, orderByComparator);
    }

    /**
    * Removes all the view points where uuid = &#63; from the database.
    *
    * @param uuid the uuid
    * @throws SystemException if a system exception occurred
    */
    public static void removeByUuid(java.lang.String uuid)
        throws com.liferay.portal.kernel.exception.SystemException {
        getPersistence().removeByUuid(uuid);
    }

    /**
    * Returns the number of view points where uuid = &#63;.
    *
    * @param uuid the uuid
    * @return the number of matching view points
    * @throws SystemException if a system exception occurred
    */
    public static int countByUuid(java.lang.String uuid)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().countByUuid(uuid);
    }

    /**
    * Returns all the view points where name LIKE &#63;.
    *
    * @param name the name
    * @return the matching view points
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<com.hlxl.viewpoint.model.ViewPoint> findByName(
        java.lang.String name)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findByName(name);
    }

    /**
    * Returns a range of all the view points where name LIKE &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.hlxl.viewpoint.model.impl.ViewPointModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param name the name
    * @param start the lower bound of the range of view points
    * @param end the upper bound of the range of view points (not inclusive)
    * @return the range of matching view points
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<com.hlxl.viewpoint.model.ViewPoint> findByName(
        java.lang.String name, int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findByName(name, start, end);
    }

    /**
    * Returns an ordered range of all the view points where name LIKE &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.hlxl.viewpoint.model.impl.ViewPointModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param name the name
    * @param start the lower bound of the range of view points
    * @param end the upper bound of the range of view points (not inclusive)
    * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
    * @return the ordered range of matching view points
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<com.hlxl.viewpoint.model.ViewPoint> findByName(
        java.lang.String name, int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findByName(name, start, end, orderByComparator);
    }

    /**
    * Returns the first view point in the ordered set where name LIKE &#63;.
    *
    * @param name the name
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching view point
    * @throws com.hlxl.viewpoint.NoSuchViewPointException if a matching view point could not be found
    * @throws SystemException if a system exception occurred
    */
    public static com.hlxl.viewpoint.model.ViewPoint findByName_First(
        java.lang.String name,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.hlxl.viewpoint.NoSuchViewPointException,
            com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findByName_First(name, orderByComparator);
    }

    /**
    * Returns the first view point in the ordered set where name LIKE &#63;.
    *
    * @param name the name
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching view point, or <code>null</code> if a matching view point could not be found
    * @throws SystemException if a system exception occurred
    */
    public static com.hlxl.viewpoint.model.ViewPoint fetchByName_First(
        java.lang.String name,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().fetchByName_First(name, orderByComparator);
    }

    /**
    * Returns the last view point in the ordered set where name LIKE &#63;.
    *
    * @param name the name
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching view point
    * @throws com.hlxl.viewpoint.NoSuchViewPointException if a matching view point could not be found
    * @throws SystemException if a system exception occurred
    */
    public static com.hlxl.viewpoint.model.ViewPoint findByName_Last(
        java.lang.String name,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.hlxl.viewpoint.NoSuchViewPointException,
            com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findByName_Last(name, orderByComparator);
    }

    /**
    * Returns the last view point in the ordered set where name LIKE &#63;.
    *
    * @param name the name
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching view point, or <code>null</code> if a matching view point could not be found
    * @throws SystemException if a system exception occurred
    */
    public static com.hlxl.viewpoint.model.ViewPoint fetchByName_Last(
        java.lang.String name,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().fetchByName_Last(name, orderByComparator);
    }

    /**
    * Returns the view points before and after the current view point in the ordered set where name LIKE &#63;.
    *
    * @param id the primary key of the current view point
    * @param name the name
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the previous, current, and next view point
    * @throws com.hlxl.viewpoint.NoSuchViewPointException if a view point with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static com.hlxl.viewpoint.model.ViewPoint[] findByName_PrevAndNext(
        long id, java.lang.String name,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.hlxl.viewpoint.NoSuchViewPointException,
            com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findByName_PrevAndNext(id, name, orderByComparator);
    }

    /**
    * Removes all the view points where name LIKE &#63; from the database.
    *
    * @param name the name
    * @throws SystemException if a system exception occurred
    */
    public static void removeByName(java.lang.String name)
        throws com.liferay.portal.kernel.exception.SystemException {
        getPersistence().removeByName(name);
    }

    /**
    * Returns the number of view points where name LIKE &#63;.
    *
    * @param name the name
    * @return the number of matching view points
    * @throws SystemException if a system exception occurred
    */
    public static int countByName(java.lang.String name)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().countByName(name);
    }

    /**
    * Caches the view point in the entity cache if it is enabled.
    *
    * @param viewPoint the view point
    */
    public static void cacheResult(com.hlxl.viewpoint.model.ViewPoint viewPoint) {
        getPersistence().cacheResult(viewPoint);
    }

    /**
    * Caches the view points in the entity cache if it is enabled.
    *
    * @param viewPoints the view points
    */
    public static void cacheResult(
        java.util.List<com.hlxl.viewpoint.model.ViewPoint> viewPoints) {
        getPersistence().cacheResult(viewPoints);
    }

    /**
    * Creates a new view point with the primary key. Does not add the view point to the database.
    *
    * @param id the primary key for the new view point
    * @return the new view point
    */
    public static com.hlxl.viewpoint.model.ViewPoint create(long id) {
        return getPersistence().create(id);
    }

    /**
    * Removes the view point with the primary key from the database. Also notifies the appropriate model listeners.
    *
    * @param id the primary key of the view point
    * @return the view point that was removed
    * @throws com.hlxl.viewpoint.NoSuchViewPointException if a view point with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static com.hlxl.viewpoint.model.ViewPoint remove(long id)
        throws com.hlxl.viewpoint.NoSuchViewPointException,
            com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().remove(id);
    }

    public static com.hlxl.viewpoint.model.ViewPoint updateImpl(
        com.hlxl.viewpoint.model.ViewPoint viewPoint)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().updateImpl(viewPoint);
    }

    /**
    * Returns the view point with the primary key or throws a {@link com.hlxl.viewpoint.NoSuchViewPointException} if it could not be found.
    *
    * @param id the primary key of the view point
    * @return the view point
    * @throws com.hlxl.viewpoint.NoSuchViewPointException if a view point with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static com.hlxl.viewpoint.model.ViewPoint findByPrimaryKey(long id)
        throws com.hlxl.viewpoint.NoSuchViewPointException,
            com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findByPrimaryKey(id);
    }

    /**
    * Returns the view point with the primary key or returns <code>null</code> if it could not be found.
    *
    * @param id the primary key of the view point
    * @return the view point, or <code>null</code> if a view point with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static com.hlxl.viewpoint.model.ViewPoint fetchByPrimaryKey(long id)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().fetchByPrimaryKey(id);
    }

    /**
    * Returns all the view points.
    *
    * @return the view points
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<com.hlxl.viewpoint.model.ViewPoint> findAll()
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findAll();
    }

    /**
    * Returns a range of all the view points.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.hlxl.viewpoint.model.impl.ViewPointModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param start the lower bound of the range of view points
    * @param end the upper bound of the range of view points (not inclusive)
    * @return the range of view points
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<com.hlxl.viewpoint.model.ViewPoint> findAll(
        int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findAll(start, end);
    }

    /**
    * Returns an ordered range of all the view points.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.hlxl.viewpoint.model.impl.ViewPointModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param start the lower bound of the range of view points
    * @param end the upper bound of the range of view points (not inclusive)
    * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
    * @return the ordered range of view points
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<com.hlxl.viewpoint.model.ViewPoint> findAll(
        int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findAll(start, end, orderByComparator);
    }

    /**
    * Removes all the view points from the database.
    *
    * @throws SystemException if a system exception occurred
    */
    public static void removeAll()
        throws com.liferay.portal.kernel.exception.SystemException {
        getPersistence().removeAll();
    }

    /**
    * Returns the number of view points.
    *
    * @return the number of view points
    * @throws SystemException if a system exception occurred
    */
    public static int countAll()
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().countAll();
    }

    public static ViewPointPersistence getPersistence() {
        if (_persistence == null) {
            _persistence = (ViewPointPersistence) PortletBeanLocatorUtil.locate(com.hlxl.viewpoint.service.ClpSerializer.getServletContextName(),
                    ViewPointPersistence.class.getName());

            ReferenceRegistry.registerReference(ViewPointUtil.class,
                "_persistence");
        }

        return _persistence;
    }

    /**
     * @deprecated As of 6.2.0
     */
    public void setPersistence(ViewPointPersistence persistence) {
    }
}
